#include "config.h"

#include <stdio.h>

#ifdef HAVE_STRING_H
#include <string.h>
#endif



/*------------------------------------------------------------------
 * Gattrib specific includes.  Note that include order is important.
 *------------------------------------------------------------------*/
#include <libgeda/libgeda.h>       /* geda library fcns  */
#include "struct.h"     /* typdef and struct declarations */
#include "prototype.h"  /* function prototypes */
#include "globals.h"

#include "i_vars.h"

#ifdef HAVE_LIBDMALLOC
#include <dmalloc.h>
#endif



/*------------------------------------------------------------------*/
/*
 * Define the vars we'll use later
 *------------------------------------------------------------------*/
int   default_paper_width = 11000; /*!< width for letter paper (landscape)
				    * \todo Can this be const? */
int   default_paper_height = 85000;/*!< height for letter paper (landscape)
				    * \todo Can this be const? */


/*------------------------------------------------------------------*/
/*! \brief Initialise variables in the TOPLEVEL
 *
 * Initialize the variables in toplevel. In practice, this is only
 * the paper size for the sheet.
 * \param toplevel pointer to the TOPLEVEL to set paper size in.
 */
void i_vars_set (TOPLEVEL *toplevel)
{
  i_vars_libgeda_set (toplevel);

  toplevel->paper_width = default_paper_width;
  toplevel->paper_height = default_paper_height;
}
